package com.dd.demo01.mapper;

import com.dd.demo01.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: lkd
 * @date: 2023/05/12/14:42
 * @Description:
 */
public interface UserMapper {

  Long allUserCountsBySex(@Param("sex") Integer sex);

  User selectUser(@Param("id") Long id);

  int insertUser(@Param("user") User user);

	int updateNameById(@Param("id") Long id, @Param("newName") String newName);
}
